package cn.liujianbo.example.validate.listener;

import cn.liujianbo.example.validate.listener.event.MyEvent;
import cn.liujianbo.example.validate.listener.event.MyEvent2;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * @author 刘建波
 * @date 2021-09-08 17:10
 */
@Component
public class TestMyEventListener2 implements ApplicationListener<MyEvent2> {
    @Override
    public void onApplicationEvent(MyEvent2 myEvent) {
        System.out.println(myEvent.getMsg());
    }
}
